package pl.kosmowska.ewelina.client.views;

import java.util.Date;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.visualization.client.AbstractDataTable;

public interface ChartView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void loadDateForCharts(Date sqlDate1, Date sqlDate2);

		void loadDataForCharts();
	}

	void setPresenter(Presenter presenter);

	boolean isAlreadyInit();
	void setAlreadyInit(boolean alreadyInit);


	void initOutcomeVsIncomeChart(AbstractDataTable dataTable);
	void initOutcomeRepeatedChart(AbstractDataTable dataTable);
	void initOutcomeCategoryChart(AbstractDataTable dataTable);
	void initIncomeCategoryChart(AbstractDataTable dataTable);
	void initBalanceChart(AbstractDataTable dataTable);
	void initIncomeRepeatedChart(AbstractDataTable dataTable);
	void initFinalBalanceChart(AbstractDataTable dataTable, boolean balancePositive);

	void showMessage(String message);

}

